﻿using ConsoleUtility.Command;
using ConsoleUtility.Demo.CommandSource;
using System;

namespace ConsoleUtility.Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            CommandHelper.SetCommands(new[] { typeof(CommandSource.Demo), typeof(Manual) });
            CommandHelper.ParseFailed += (s, e) =>
            {
                Console.WriteLine("manual or -H for help.");
            };

            Console.WriteLine("ConsoleUtility Demo 0.1");

            while (true)
            {
                var input = ConsoleHelper.ReadLine("");
                CommandHelper.ExcuteCommand(input);
            }
        }
    }
}
